package com.atguigu.config;

import com.atguigu.bean.MySchedule;
import org.springframework.context.annotation.*;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author 张晓
 * @create 2020-11-17 14:00
 */
@Configuration
@EnableScheduling
public class MainConfigOfSchedule {

    @Bean
    public MySchedule mySchedule(){
        return new MySchedule();
    }

}
